package com.frank.subject.domain.convert;

import com.frank.subject.domain.entity.SubjectInfoBo;
import com.frank.subject.domain.entity.SubjectOptionBo;
import com.frank.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author Frank Zou
 * @version v0.0.1
 * @date 2024/1/25 11:23 AM
 * @description
 */
@Mapper
public interface SubjectInfoBoConverter {

    SubjectInfoBoConverter INSTANCE = Mappers.getMapper(SubjectInfoBoConverter.class);

    SubjectInfo convertBoToInfo(SubjectInfoBo subjectInfoBO);

    List<SubjectInfoBo> convertEntitiesToBoList(List<SubjectInfo> subjectInfoList);

    SubjectInfoBo convertEntityAndOptionToBo( SubjectOptionBo subjectOptionBo, SubjectInfo subjectInfo);
}
